#ifndef RANDOM_H
#define RANDOM_H

#include <stdlib.h>       
#include <time.h> 

class RandomInt {
    public:
        RandomInt() { srand(time(0)); }
        unsigned int operator()(unsigned int max)
        {
			unsigned int rval = rand();
			return rval % max;
		}
}; // RandomInteger

#endif
